package com.yociyy.security.annotation;

import com.yociyy.security.config.AuthenticationBeanConfig;
import com.yociyy.security.config.YoCiResourceServerConfig;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * 自定义资源服务配置注解
 * 
 * @author: YoCiyy
 * @date: 2020/6/30
 */
@Documented
@Inherited
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableResourceServer
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({YoCiResourceServerConfig.class, AuthenticationBeanConfig.class})
public @interface EnableYoCiResourceServer {
}
